<?php
/* @var $this PersonneltechniqueController */
/* @var $model PERSONNELTECHNIQUE */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'personneltechnique-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Les champs marqués <span class="required">*</span> sont requis.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'NOM_PERSONNEL'); ?>
		<?php echo $form->textField($model,'NOM_PERSONNEL',array('size'=>20,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'NOM_PERSONNEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PRENOM_PERSONNEL'); ?>
		<?php echo $form->textField($model,'PRENOM_PERSONNEL',array('size'=>20,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'PRENOM_PERSONNEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'MAIL_PERSONNEL'); ?>
		<?php echo $form->textField($model,'MAIL_PERSONNEL',array('size'=>60,'maxlength'=>60)); ?>
		<?php echo $form->error($model,'MAIL_PERSONNEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'FONCTION_PERSONNEL'); ?>
		<?php echo CHtml::radioButtonList('fonction',$model->FONCTION_PERSONNEL,array(  	'Opérateur' => 'Opérateur',
																							'Chef de service' => 'Chef de service'),
																					array('labelOptions'=>array('style'=>'display:inline'),
																							'separator' => " " )); ?>
		<?php echo $form->error($model,'FONCTION_PERSONNEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LOGIN_PERSONNEL'); ?>
		<?php echo $form->textField($model,'LOGIN_PERSONNEL',array('size'=>20,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'LOGIN_PERSONNEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PASSWORD_PERSONNEL'); ?>
		<?php echo $form->passwordField($model,'PASSWORD_PERSONNEL',array('size'=>20,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'PASSWORD_PERSONNEL'); ?>
	</div>
	
	<?php echo $form->labelEx($model,'COMPETENCE_LOGICIEL'); ?>
	<div class="row" id="competence_logiciel" >
		<?php echo CHtml::dropDownList('pbLog[]','empty',$pbLog, array('empty' => 'Selectionnez une competence')); ?>
		<?php echo $form->error($model,'COMPETENCE_LOGICIEL'); ?>				
	</div>
	<span id="span_logiciel">
	
	<?php echo CHtml::button("+",array('onclick'=>'js:addCompetenceL()')); ?>
		
	<?php echo $form->labelEx($model,'COMPETENCE_MATERIEL'); ?>	
	<div class="row" id="competence_materiel" >
		<?php echo CHtml::dropDownList('pbMat[]','empty',$pbMat, array('empty' => 'Selectionnez une competence')); ?>
		<?php echo $form->error($model,'COMPETENCE_MATERIEL'); ?>	
	</div>
	<span id="span_materiel">
	
	<?php echo CHtml::button("+",array('onclick'=>'js:addCompetenceM()')); ?>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Ajouter' : 'Enregistrer'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
<script src="js/jQuery.js"></script>
<script src="js/operateur.js"></script>